<%@ taglib prefix="sf" uri="http://www.springframework.org/tags/form"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<h2>Issue the Book</h2>
<div>
	<sf:form method="POST" modelAttribute="outcomeRecord">
		<fieldset>
			<table>
				<tr>
					<th>Book id</th>
					<td><sf:input path="book.id" id="book_id" /></td>
				</tr>
				<tr>
					<td></td>
					<td><sf:errors path="book" cssClass="error" /></td>
				</tr>
				<tr>
					<th>User id</th>
					<td><sf:input path="user.id" id="user_id" /></td>
				</tr>
				<tr>
					<td></td>
					<td><sf:errors path="user" cssClass="error" /></td>
				</tr>
				<tr>
					<th>Start Date</th>
					<td>
					<sf:input path="startDate" id="start_date" readonly="true"/>
					</td>
				</tr>
				<tr>
					<td></td>
					<td><sf:errors path="startDate" cssClass="error" /></td>
				</tr>
				<tr>
					<th>Return date</th>
					<td><sf:input path="returnDate" id="return_date" /></td>
				</tr>
				<tr>
					<td></td>
					<td><sf:errors cssClass="error" /></td>
				</tr>
				<tr>
					<td></td>
					<td><input type="submit" value="Submit" /></td>
				</tr>
			</table>
		</fieldset>
	</sf:form>
</div>